import {request} from '@/utils/request'
export function getProxyList(params) {
    return request({
        url: '/api/fizz-manager/blade-api-auth/list',
        method: 'get',
        params
    })
}
export function getServiceDict() {
    return request({
        url: '/api/fizz-manager/blade-service/service/simple-list',
        method: 'get',
    })
}
export function getGroupeDict() {
    return request({
        url: '/api/fizz-manager/gateway-group/simple-list',
        method: 'get',
    })
}
export function getPluginDict() {
    return request({
        url: '/api/fizz-manager/blade-plugin/list-all',
        method: 'get',
    })
}
export function patchUrl(data) {
    return request({
        url: '/api/fizz-manager/blade-api-auth/url-transform',
        method: 'post',
        data
    })
}
export function getRpcServiceList(params) {
    return request({
        url: '/api/fizz-manager/rpc-service/list',
        method: 'get',
        params
    })
}
/**
 * RPC保存
 */
export function saveRpc(data) {
    return request({
        url: '/api/fizz-manager/rpc-service/save',
        method: 'post',
        data
    })
}
/**
 * Dubbo保存
 */
 export function saveDubbo(data) {
    return request({
        url: '/api/fizz-manager/rpc-service-method/save',
        method: 'post',
        data
    })
}
export function geDubboData(params) {
    return request({
        url: '/api/fizz-manager/rpc-service-method/list',
        method: 'get',
        params
    })
}
export function geRegistryDict() {
    return request({
        url: '/api/fizz-manager/registry-config/registry-name-list',
        method: 'get',
    })
}
export function saveProxy(data) {
    return request({
        url: '/api/fizz-manager/blade-api-auth/save',
        method: 'post',
        data
    })
}
export function remove(ids) {
    return request({
        url: '/api/fizz-manager/blade-api-auth/remove?ids='+ids,
        method: 'post',
    })
}
export function getDetail(id) {
    return request({
        url: `/api/fizz-manager/blade-api-auth/detail/${id}`,
        method: 'get',
    })
}